package com.itcast.util;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;



public class OutUtil {

	public static void outcase(Object object ,HttpServletResponse response){
		//HttpServletResponse response =ServletActionContext.getResponse();
		//解决ajxa response 中文乱码
		response.setContentType("text/html; charset=UTF-8");
		PrintWriter out;
		try {
			out= response.getWriter();
			out.print(object);
			out.flush();
			out.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}



	}

}
